import layoutHeaderAside from '@/layout/header-aside'

const meta = { auth: true }

export default {
  path: '/find',
  name: 'Find',
  meta,
  redirect: { name: 'demo-d2-crud-index' },
  component: layoutHeaderAside,
  children: (pre => [{
    path: `list`,
    name: `Find`,
    component: () => import('@/pages/find/'),
    meta: { ...meta, title: '发现' }
  }, {
    path: `edit/:id?`,
    name: `FindEdit`,
    component: () => import('@/pages/find/edit'),
    meta: { ...meta, title: '发现编辑' }
  }])('find')
}
